import request from "@/utils/request";

/**
 * 工程管理列表
 * @param { EngineeringParams } params
 * @returns { EngineeringData }
 */
export const engineeringList = params => {
  return request({
    url: "/crm/build/task/stageCustomerList",
    method: "get",
    params
  });
};

/**
 * 结案
 */
export const closeCase = customerId => {
  return request({
    url: `/crm/build/task/finish/${customerId}`,
    method: "post"
  });
};
/**
 * 获取执行中合同列表
 * @param {{customerId}} params
 * @returns { EngineeringData }
 */
export const contractList = params => {
  return request({
    url: "/crm/build/task/getContractList",
    method: "get",
    params
  });
};
/**
 * 判断发起整改增减项是否能发起变更单
 */
export const checkBudget = contractId => {
  return request({
    url: `/crm/reform/check-nuclear-budget/${contractId}`,
    method: "get"
  });
};